import {get, postWithJson} from "@/api/requests";

/**
 * 健康饮食搭配参数配置
 * @param params
 * @returns {Promise<*>}
 */
export async function fetch(params) {
    return get('mem/fetch', params);
}

export async function fetchOne(params) {
    return get('mem/fetchOne', params);
}

export async function add(params) {
    return postWithJson('mem/add', params);
}

export async function update(params) {
    return postWithJson('mem/update', params);
}

export async function drop(params) {
    return get('mem/drop', params);
}

export async function res(params) {
    return get('mem/res', params);
}

export async function act(params) {
    return get('mem/act', params);
}

export async function stop(params) {
    return get('mem/stop', params);
}
